<script setup lang="ts">
import { ref } from "vue";

const count = ref(0);
function changeCount() {
  count.value++;
  console.log(count.value);
}
</script>

<template>
  <h1>{{ count }}</h1>
  <button @click="changeCount">点击我加1</button>
</template>
